/*
 * Copyright (c) 2016, www.zm0618.com All Rights Reserved..
 */

package com.ibetter.mr.grade.medic.voteup;

import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * Created by zhaojun on 2016/12/10.
 */
public class GradeUserVoteMedicReducer extends Reducer<Text,DoubleWritable,Text,DoubleWritable>{
    @Override
    protected void reduce(Text key, Iterable<DoubleWritable> values, Context context) throws IOException, InterruptedException {
        DoubleWritable score = values.iterator().next();
        context.write(key,score);
    }
}
